package org.dromara.system.service;

import org.dromara.system.domain.WbCities;
import org.dromara.system.domain.vo.WbCitiesVo;
import org.dromara.system.domain.bo.WbCitiesBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 城市Service接口
 *
 * @author Lion Li
 * @date 2024-05-28
 */
public interface IWbCitiesService {

    /**
     * 查询城市
     */
    WbCitiesVo queryById(Long cityId);

    /**
     * 查询城市列表
     */
    TableDataInfo<WbCitiesVo> queryPageList(WbCitiesBo bo, PageQuery pageQuery);

    /**
     * 查询城市列表
     */
    List<WbCitiesVo> queryList(WbCitiesBo bo);

    /**
     * 新增城市
     */
    Boolean insertByBo(WbCitiesBo bo);

    /**
     * 修改城市
     */
    Boolean updateByBo(WbCitiesBo bo);

    /**
     * 校验并批量删除城市信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    int querySonNum(Collection<Long> provinceIds);
}
